<template>
	<view>
		<web-view
			:src="`https://www.huaguduo.top/drivermap?longitude=${lon}&latitude=${lat}`"
			@message="receiveData">
		</web-view>
	</view>
</template>

<script setup>
	const lon = ref('');
	const lat = ref('');
	onMounted(() => {
		lon.value = getApp().globalData.longitude || ''
		lat.value = getApp().globalData.latitude || ''
	})
	const receiveData = (e) => {
		const data = e.detail.data;
		if (data[0].click == 1) {
			uni.navigateTo({
				url: '/pages/webview/driverList'
			})
		}
	}
</script>

<style>
	       
</style>
